/**
 * ...
 * @author Thot
 */

function AnimationFactory(){}

AnimationFactory.getAnimationFromVO = function( p_vo )
{
	var anim = new Animation();
	anim.animationTime  = p_vo.animTime
	anim.name = p_vo.name;
	anim.frame = 0;
	
	var frames = p_vo.frames;
	var i = 0;
	var max = frames.length;
	
	for( ; i < max; i++ )
	{
		anim.setFrame( i, frames[i].uv, frames[i].tex );
	}
	
	return anim;
};